Attribute VB_Name = "mdlENet"
Option Explicit

'--- .\Lib\swig.swg ---
'--- .\Lib\swigwarnings.swg ---
'--- .\Lib\swigwarn.swg ---
'--- .\Lib\swigwarnings.swg ---
'--- .\Lib\swig.swg ---
'--- F:\Projects\enet-1.3.4\ENet_VB.i ---
'typedef unsigned long  ULONG; ==> Long
'typedef ULONG p. PULONG; ==> Long*
'typedef unsigned short  USHORT; ==> Integer
'typedef USHORT p. PUSHORT; ==> Integer*
'typedef unsigned char  UCHAR; ==> Byte
'typedef UCHAR p. PUCHAR; ==> Byte*
'typedef char p. PSZ; ==> Byte*
'typedef unsigned long  DWORD; ==> Long
'typedef int  BOOL; ==> Long
'typedef unsigned char  BYTE; ==> Byte
'typedef unsigned short  WORD; ==> Integer
'typedef float  FLOAT; ==> Single
'typedef FLOAT p. PFLOAT; ==> Single*
'typedef BOOL p. PBOOL; ==> Long*
'typedef BOOL p. LPBOOL; ==> Long*
'typedef BYTE p. PBYTE; ==> Byte*
'typedef BYTE p. LPBYTE; ==> Byte*
'typedef int p. PINT; ==> Long*
'typedef int p. LPINT; ==> Long*
'typedef WORD p. PWORD; ==> Integer*
'typedef WORD p. LPWORD; ==> Integer*
'typedef long p. LPLONG; ==> Long*
'typedef DWORD p. PDWORD; ==> Long*
'typedef DWORD p. LPDWORD; ==> Long*
'typedef void p. LPVOID; ==> Void*
'typedef q(const).void p. LPCVOID; ==> Void*
'typedef int  INT; ==> Long
'typedef unsigned int  UINT; ==> Long
'typedef unsigned int p. PUINT; ==> Long*
'typedef signed char  INT8; ==> Byte
'typedef signed char p. PINT8; ==> Byte*
'typedef short  INT16; ==> Integer
'typedef short p. PINT16; ==> Integer*
'typedef int  INT32; ==> Long
'typedef int p. PINT32; ==> Long*
'typedef signed __int64  INT64; ==> Currency
'typedef signed __int64 p. PINT64; ==> Currency*
'typedef unsigned char  UINT8; ==> Byte
'typedef unsigned char p. PUINT8; ==> Byte*
'typedef unsigned short  UINT16; ==> Integer
'typedef unsigned short p. PUINT16; ==> Integer*
'typedef unsigned int  UINT32; ==> Long
'typedef unsigned int p. PUINT32; ==> Long*
'typedef unsigned __int64  UINT64; ==> Currency
'typedef unsigned __int64 p. PUINT64; ==> Currency*
'typedef int  LONG32; ==> Long
'typedef int p. PLONG32; ==> Long*
'typedef unsigned int  ULONG32; ==> Long
'typedef unsigned int p. PULONG32; ==> Long*
'typedef unsigned int  DWORD32; ==> Long
'typedef unsigned int p. PDWORD32; ==> Long*
'typedef int  INT_PTR; ==> Long
'typedef int p. PINT_PTR; ==> Long*
'typedef unsigned int  UINT_PTR; ==> Long
'typedef unsigned int p. PUINT_PTR; ==> Long*
'typedef long  LONG_PTR; ==> Long
'typedef long p. PLONG_PTR; ==> Long*
'typedef unsigned long  ULONG_PTR; ==> Long
'typedef unsigned long p. PULONG_PTR; ==> Long*
'typedef unsigned short  UHALF_PTR; ==> Integer
'typedef unsigned short p. PUHALF_PTR; ==> Integer*
'typedef short  HALF_PTR; ==> Integer
'typedef short p. PHALF_PTR; ==> Integer*
'typedef long  SHANDLE_PTR; ==> Long
'typedef unsigned long  HANDLE_PTR; ==> Long
'typedef ULONG_PTR  SIZE_T; ==> Long
'typedef ULONG_PTR p. PSIZE_T; ==> Long*
'typedef LONG_PTR  SSIZE_T; ==> Long
'typedef LONG_PTR p. PSSIZE_T; ==> Long*
'typedef ULONG_PTR  DWORD_PTR; ==> Long
'typedef ULONG_PTR p. PDWORD_PTR; ==> Long*
'typedef __int64  LONG64; ==> Currency
'typedef __int64 p. PLONG64; ==> Currency*
'typedef unsigned __int64  ULONG64; ==> Currency
'typedef unsigned __int64 p. PULONG64; ==> Currency*
'typedef unsigned __int64  DWORD64; ==> Currency
'typedef unsigned __int64 p. PDWORD64; ==> Currency*
'typedef void p. PVOID; ==> Void*
'typedef void p. PVOID64; ==> Void*
'typedef char  CHAR; ==> Byte
'typedef short  SHORT; ==> Integer
'typedef long  LONG; ==> Long
'typedef CHAR p. PCHAR; ==> Byte*
'typedef CHAR p. LPCH; ==> Byte*
'typedef CHAR p. PCH; ==> Byte*
'typedef q(const).CHAR p. LPCCH; ==> Byte*
'typedef q(const).CHAR p. PCCH; ==> Byte*
'typedef CHAR p. NPSTR; ==> Byte*
'typedef CHAR p. LPSTR; ==> Byte*
'typedef CHAR p. PSTR; ==> Byte*
'typedef q(const).CHAR p. LPCSTR; ==> Byte*
'typedef q(const).CHAR p. PCSTR; ==> Byte*
'typedef char  TCHAR; ==> Byte
'typedef char p. PTCHAR; ==> Byte*
'typedef unsigned char  TBYTE; ==> Byte
'typedef unsigned char p. PTBYTE; ==> Byte*
'typedef LPSTR  LPTCH; ==> Byte*
'typedef LPSTR  PTCH; ==> Byte*
'typedef LPSTR  PTSTR; ==> Byte*
'typedef LPSTR  LPTSTR; ==> Byte*
'typedef LPSTR  PUTSTR; ==> Byte*
'typedef LPSTR  LPUTSTR; ==> Byte*
'typedef LPCSTR  PCTSTR; ==> Byte*
'typedef LPCSTR  LPCTSTR; ==> Byte*
'typedef LPCSTR  PCUTSTR; ==> Byte*
'typedef LPCSTR  LPCUTSTR; ==> Byte*
'typedef SHORT p. PSHORT; ==> Integer*
'typedef LONG p. PLONG; ==> Long*
'typedef void p. HANDLE; ==> Void*
'typedef HANDLE p. PHANDLE; ==> Void**
'typedef BYTE  FCHAR; ==> Byte
'typedef WORD  FSHORT; ==> Integer
'typedef DWORD  FLONG; ==> Long
'typedef LONG  HRESULT; ==> Long
'typedef char  CCHAR; ==> Byte
'typedef DWORD  LCID; ==> Long
'typedef PDWORD  PLCID; ==> Long*
'typedef WORD  LANGID; ==> Integer
'typedef __int64  LONGLONG; ==> Currency
'typedef unsigned __int64  ULONGLONG; ==> Currency
'typedef LONGLONG p. PLONGLONG; ==> Currency*
'typedef ULONGLONG p. PULONGLONG; ==> Currency*
'typedef ULONGLONG  DWORDLONG; ==> Currency
'typedef DWORDLONG p. PDWORDLONG; ==> Currency*
'typedef BYTE  BOOLEAN; ==> Byte
'typedef BOOLEAN p. PBOOLEAN; ==> Byte*
'typedef unsigned int  size_t; ==> Long
'typedef struct SOCKET  SOCKET; ==> $Opaque$
'typedef struct fd_set  fd_set; ==> $Opaque$
'typedef struct ENetHost  ENetHost; ==> $Opaque$
'typedef struct ENetPeer  ENetPeer; ==> $Opaque$
'typedef struct ENetProtocol  ENetProtocol; ==> $Opaque$
'typedef struct ENetAcknowledgement  ENetAcknowledgement; ==> $Opaque$
'typedef struct ENetOutgoingCommand  ENetOutgoingCommand; ==> $Opaque$
'typedef struct ENetIncomingCommand  ENetIncomingCommand; ==> $Opaque$
'typedef struct ENetListNode  ENetListNode; ==> $Opaque$
'typedef struct ENetList  ENetList; ==> $Opaque$
'typedef struct ENetChannel  ENetChannel; ==> $Opaque$
'--- F:\Projects\enet-1.3.4\include\enet\enet.h ---
'--- F:\Projects\enet-1.3.4\include\enet\win32.h ---
Public Type ENetBuffer
 dataLength As Long
 data As Long 'Void*
End Type '8 bytes
'--- F:\Projects\enet-1.3.4\include\enet\enet.h ---
'--- F:\Projects\enet-1.3.4\include\enet\types.h ---
'typedef unsigned char  enet_uint8; ==> Byte
'typedef unsigned short  enet_uint16; ==> Integer
'typedef unsigned int  enet_uint32; ==> Long
'--- F:\Projects\enet-1.3.4\include\enet\enet.h ---
'--- F:\Projects\enet-1.3.4\include\enet\protocol.h ---
Public Enum ENetProtocolCommand
 ENET_PROTOCOL_COMMAND_NONE = 0
 ENET_PROTOCOL_COMMAND_ACKNOWLEDGE = 1
 ENET_PROTOCOL_COMMAND_CONNECT = 2
 ENET_PROTOCOL_COMMAND_VERIFY_CONNECT = 3
 ENET_PROTOCOL_COMMAND_DISCONNECT = 4
 ENET_PROTOCOL_COMMAND_PING = 5
 ENET_PROTOCOL_COMMAND_SEND_RELIABLE = 6
 ENET_PROTOCOL_COMMAND_SEND_UNRELIABLE = 7
 ENET_PROTOCOL_COMMAND_SEND_FRAGMENT = 8
 ENET_PROTOCOL_COMMAND_SEND_UNSEQUENCED = 9
 ENET_PROTOCOL_COMMAND_BANDWIDTH_LIMIT = 10
 ENET_PROTOCOL_COMMAND_THROTTLE_CONFIGURE = 11
 ENET_PROTOCOL_COMMAND_SEND_UNRELIABLE_FRAGMENT = 12
 ENET_PROTOCOL_COMMAND_COUNT = 13
 ENET_PROTOCOL_COMMAND_MASK = &HF&
End Enum
Public Enum ENetProtocolFlag
 ENET_PROTOCOL_COMMAND_FLAG_ACKNOWLEDGE = (1 * 2 ^ 7)
 ENET_PROTOCOL_COMMAND_FLAG_UNSEQUENCED = (1 * 2 ^ 6)
 ENET_PROTOCOL_HEADER_FLAG_COMPRESSED = (1 * 2 ^ 14)
 ENET_PROTOCOL_HEADER_FLAG_SENT_TIME = (1 * 2 ^ 15)
 ENET_PROTOCOL_HEADER_FLAG_MASK = ENET_PROTOCOL_HEADER_FLAG_COMPRESSED Or ENET_PROTOCOL_HEADER_FLAG_SENT_TIME
 ENET_PROTOCOL_HEADER_SESSION_MASK = (3 * 2 ^ 12)
 ENET_PROTOCOL_HEADER_SESSION_SHIFT = 12
End Enum
'--- F:\Projects\enet-1.3.4\include\enet\enet.h ---
'--- F:\Projects\enet-1.3.4\include\enet\list.h ---
'typedef ENetListNode p. ENetListIterator; ==> Long
Public Declare Sub enet_list_clear Lib "enet.dll" (ByVal a1_ As Long)
Public Declare Function enet_list_insert Lib "enet.dll" (ByVal a1_ As Long, ByRef a2_ As Any) As Long
Public Declare Function enet_list_remove Lib "enet.dll" (ByVal a1_ As Long) As Long 'Void*
Public Declare Function enet_list_move Lib "enet.dll" (ByVal a1_ As Long, ByRef a2_ As Any, ByRef a3_ As Any) As Long
Public Declare Function enet_list_size Lib "enet.dll" (ByVal a1_ As Long) As Long
'--- F:\Projects\enet-1.3.4\include\enet\enet.h ---
'--- F:\Projects\enet-1.3.4\include\enet\callbacks.h ---
Public Type ENetCallbacks
 malloc As Long
 free As Long
 no_memory As Long
End Type '12 bytes
Public Declare Function enet_malloc Lib "enet.dll" (ByVal a1_ As Long) As Long 'Void*
Public Declare Sub enet_free Lib "enet.dll" (ByRef a1_ As Any)
'--- F:\Projects\enet-1.3.4\include\enet\enet.h ---
Public Const ENET_VERSION_MAJOR As Long = 1
Public Const ENET_VERSION_MINOR As Long = 3
Public Const ENET_VERSION_PATCH As Long = 4
Public Const ENET_VERSION As Long = (((1) * 2 ^ 16) Or ((3) * 2 ^ 8) Or (4))
'typedef enet_uint32  ENetVersion; ==> Long
Public Enum ENetSocketType
 ENET_SOCKET_TYPE_STREAM = 1
 ENET_SOCKET_TYPE_DATAGRAM = 2
End Enum
Public Enum ENetSocketWait
 ENET_SOCKET_WAIT_NONE = 0
 ENET_SOCKET_WAIT_SEND = (1 * 2 ^ 0)
 ENET_SOCKET_WAIT_RECEIVE = (1 * 2 ^ 1)
End Enum
Public Enum ENetSocketOption
 ENET_SOCKOPT_NONBLOCK = 1
 ENET_SOCKOPT_BROADCAST = 2
 ENET_SOCKOPT_RCVBUF = 3
 ENET_SOCKOPT_SNDBUF = 4
 ENET_SOCKOPT_REUSEADDR = 5
 ENET_SOCKOPT_RCVTIMEO = 6
 ENET_SOCKOPT_SNDTIMEO = 7
End Enum
Public Type ENetAddress
 host As Long
 port As Integer
End Type '6 bytes
Public Enum ENetPacketFlag
 ENET_PACKET_FLAG_RELIABLE = (1 * 2 ^ 0)
 ENET_PACKET_FLAG_UNSEQUENCED = (1 * 2 ^ 1)
 ENET_PACKET_FLAG_NO_ALLOCATE = (1 * 2 ^ 2)
 ENET_PACKET_FLAG_UNRELIABLE_FRAGMENT = (1 * 2 ^ 3)
End Enum
'typedef void p.f(p.struct ENetPacket). ENetPacketFreeCallback; ==> Long
Public Type ENetPacket
 referenceCount As Long
 flags As Long
 data As Long 'Byte*
 dataLength As Long
 freeCallback As Long
End Type '20 bytes
Public Enum ENetPeerState
 ENET_PEER_STATE_DISCONNECTED = 0
 ENET_PEER_STATE_CONNECTING = 1
 ENET_PEER_STATE_ACKNOWLEDGING_CONNECT = 2
 ENET_PEER_STATE_CONNECTION_PENDING = 3
 ENET_PEER_STATE_CONNECTION_SUCCEEDED = 4
 ENET_PEER_STATE_CONNECTED = 5
 ENET_PEER_STATE_DISCONNECT_LATER = 6
 ENET_PEER_STATE_DISCONNECTING = 7
 ENET_PEER_STATE_ACKNOWLEDGING_DISCONNECT = 8
 ENET_PEER_STATE_ZOMBIE = 9
End Enum
Public Type ENetCompressor
 context As Long 'Void*
 compress As Long
 decompress As Long
 destroy As Long
End Type '16 bytes
'typedef enet_uint32 p.f(p.q(const).ENetBuffer,size_t). ENetChecksumCallback; ==> Long
Public Enum ENetEventType
 ENET_EVENT_TYPE_NONE = 0
 ENET_EVENT_TYPE_CONNECT = 1
 ENET_EVENT_TYPE_DISCONNECT = 2
 ENET_EVENT_TYPE_RECEIVE = 3
End Enum
Public Type ENetEvent
 type As ENetEventType
 peer As Long
 channelID As Byte
 data As Long
 packet As Long 'ENetPacket*
End Type '20 bytes
Public Declare Function enet_initialize Lib "enet.dll" () As Long
Public Declare Function enet_initialize_with_callbacks Lib "enet.dll" (ByVal version_ As Long, ByRef inits_ As ENetCallbacks) As Long
Public Declare Sub enet_deinitialize Lib "enet.dll" ()
Public Declare Function enet_time_get Lib "enet.dll" () As Long
Public Declare Sub enet_time_set Lib "enet.dll" (ByVal a1_ As Long)
Public Declare Function enet_address_set_host Lib "enet.dll" (ByRef address_ As ENetAddress, ByRef hostName_ As Any) As Long
Public Declare Function enet_address_get_host_ip Lib "enet.dll" (ByRef address_ As ENetAddress, ByRef hostName_ As Any, ByVal nameLength_ As Long) As Long
Public Declare Function enet_address_get_host Lib "enet.dll" (ByRef address_ As ENetAddress, ByRef hostName_ As Any, ByVal nameLength_ As Long) As Long
Public Declare Function enet_packet_create Lib "enet.dll" (ByRef a1_ As Any, ByVal a2_ As Long, ByVal a3_ As Long) As Long 'ENetPacket*
Public Declare Sub enet_packet_destroy Lib "enet.dll" (ByRef a1_ As Any)
Public Declare Function enet_packet_resize Lib "enet.dll" (ByRef a1_ As Any, ByVal a2_ As Long) As Long
Public Declare Function enet_crc32 Lib "enet.dll" (ByRef a1_ As ENetBuffer, ByVal a2_ As Long) As Long
Public Declare Function enet_host_create Lib "enet.dll" (ByRef a1_ As Any, ByVal a2_ As Long, ByVal a3_ As Long, ByVal a4_ As Long, ByVal a5_ As Long) As Long
Public Declare Sub enet_host_destroy Lib "enet.dll" (ByVal a1_ As Long)
Public Declare Function enet_host_connect Lib "enet.dll" (ByVal a1_ As Long, ByRef a2_ As ENetAddress, ByVal a3_ As Long, ByVal a4_ As Long) As Long
Public Declare Function enet_host_check_events Lib "enet.dll" (ByVal a1_ As Long, ByRef a2_ As ENetEvent) As Long
Public Declare Function enet_host_service Lib "enet.dll" (ByVal a1_ As Long, ByRef a2_ As ENetEvent, ByVal a3_ As Long) As Long
Public Declare Sub enet_host_flush Lib "enet.dll" (ByVal a1_ As Long)
Public Declare Sub enet_host_broadcast Lib "enet.dll" (ByVal a1_ As Long, ByVal a2_ As Byte, ByRef a3_ As Any)
Public Declare Sub enet_host_compress Lib "enet.dll" (ByVal a1_ As Long, ByRef a2_ As ENetCompressor)
Public Declare Function enet_host_compress_with_range_coder Lib "enet.dll" (ByVal host_ As Long) As Long
Public Declare Sub enet_host_channel_limit Lib "enet.dll" (ByVal a1_ As Long, ByVal a2_ As Long)
Public Declare Sub enet_host_bandwidth_limit Lib "enet.dll" (ByVal a1_ As Long, ByVal a2_ As Long, ByVal a3_ As Long)
Public Declare Sub enet_host_bandwidth_throttle Lib "enet.dll" (ByVal a1_ As Long)
Public Declare Function enet_peer_send Lib "enet.dll" (ByVal a1_ As Long, ByVal a2_ As Byte, ByRef a3_ As Any) As Long
Public Declare Function enet_peer_receive Lib "enet.dll" (ByVal a1_ As Long, ByRef channelID_ As Any) As Long 'ENetPacket*
Public Declare Sub enet_peer_ping Lib "enet.dll" (ByVal a1_ As Long)
Public Declare Sub enet_peer_ping_interval Lib "enet.dll" (ByVal a1_ As Long, ByVal a2_ As Long)
Public Declare Sub enet_peer_timeout Lib "enet.dll" (ByVal a1_ As Long, ByVal a2_ As Long, ByVal a3_ As Long, ByVal a4_ As Long)
Public Declare Sub enet_peer_reset Lib "enet.dll" (ByVal a1_ As Long)
Public Declare Sub enet_peer_disconnect Lib "enet.dll" (ByVal a1_ As Long, ByVal a2_ As Long)
Public Declare Sub enet_peer_disconnect_now Lib "enet.dll" (ByVal a1_ As Long, ByVal a2_ As Long)
Public Declare Sub enet_peer_disconnect_later Lib "enet.dll" (ByVal a1_ As Long, ByVal a2_ As Long)
Public Declare Sub enet_peer_throttle_configure Lib "enet.dll" (ByVal a1_ As Long, ByVal a2_ As Long, ByVal a3_ As Long, ByVal a4_ As Long)
Public Declare Function enet_peer_throttle Lib "enet.dll" (ByVal a1_ As Long, ByVal a2_ As Long) As Long
Public Declare Sub enet_peer_reset_queues Lib "enet.dll" (ByVal a1_ As Long)
Public Declare Sub enet_peer_setup_outgoing_command Lib "enet.dll" (ByVal a1_ As Long, ByVal a2_ As Long)
Public Declare Function enet_peer_queue_outgoing_command Lib "enet.dll" (ByVal a1_ As Long, ByVal a2_ As Long, ByRef a3_ As Any, ByVal a4_ As Long, ByVal a5_ As Integer) As Long
Public Declare Function enet_peer_queue_incoming_command Lib "enet.dll" (ByVal a1_ As Long, ByVal a2_ As Long, ByRef a3_ As Any, ByVal a4_ As Long) As Long
Public Declare Function enet_peer_queue_acknowledgement Lib "enet.dll" (ByVal a1_ As Long, ByVal a2_ As Long, ByVal a3_ As Integer) As Long
Public Declare Sub enet_peer_dispatch_incoming_unreliable_commands Lib "enet.dll" (ByVal a1_ As Long, ByVal a2_ As Long)
Public Declare Sub enet_peer_dispatch_incoming_reliable_commands Lib "enet.dll" (ByVal a1_ As Long, ByVal a2_ As Long)
Public Declare Function enet_range_coder_create Lib "enet.dll" () As Long 'Void*
Public Declare Sub enet_range_coder_destroy Lib "enet.dll" (ByRef a1_ As Any)
Public Declare Function enet_range_coder_compress Lib "enet.dll" (ByRef a1_ As Any, ByRef a2_ As ENetBuffer, ByVal a3_ As Long, ByVal a4_ As Long, ByRef a5_ As Any, ByVal a6_ As Long) As Long
Public Declare Function enet_range_coder_decompress Lib "enet.dll" (ByRef a1_ As Any, ByRef a2_ As Any, ByVal a3_ As Long, ByRef a4_ As Any, ByVal a5_ As Long) As Long
Public Declare Function enet_protocol_command_size Lib "enet.dll" (ByVal a1_ As Byte) As Long
'--- F:\Projects\enet-1.3.4\ENet_VB.i ---
Public Declare Sub enet_peer_get_address Lib "enet.dll" (ByVal peer_ As Long, ByRef address_ As ENetAddress)
Public Declare Function enet_peer_get_host Lib "enet.dll" (ByVal peer_ As Long) As Long
Public Declare Function enet_peer_get_data Lib "enet.dll" (ByVal peer_ As Long) As Long 'Void*
Public Declare Sub enet_peer_set_data Lib "enet.dll" (ByVal peer_ As Long, ByRef data_ As Any)
Public Declare Function enet_peer_get_round_trip_time Lib "enet.dll" (ByVal peer_ As Long) As Long
Public Declare Function enet_peer_get_state Lib "enet.dll" (ByVal peer_ As Long) As ENetPeerState
Public Declare Sub enet_host_get_address Lib "enet.dll" (ByVal host_ As Long, ByRef address_ As ENetAddress)
Public Declare Function enet_host_get_peer Lib "enet.dll" (ByVal host_ As Long, ByVal index_ As Long) As Long
Public Declare Function enet_host_get_peer_count Lib "enet.dll" (ByVal host_ As Long) As Long
Public Declare Function enet_packet_get_size Lib "enet.dll" (ByRef packet_ As Any) As Long
Public Declare Function enet_packet_get_pointer Lib "enet.dll" (ByRef packet_ As Any) As Long 'Void*

